import request from '@/utils/request'

// 查询分销员申请表列表
export function listDistributorapp(query) {
  return request({
    url: '/distributorapp/distributorapp/list',
    method: 'get',
    params: query
  })
}

// 查询分销员申请表详细
export function getDistributorapp(id) {
  return request({
    url: '/distributorapp/distributorapp/' + id,
    method: 'get'
  })
}

// 新增分销员申请表
export function addDistributorapp(data) {
  return request({
    url: '/distributorapp/distributorapp',
    method: 'post',
    data: data
  })
}

// 修改分销员申请表
export function updateDistributorapp(data) {
  return request({
    url: '/distributorapp/distributorapp',
    method: 'put',
    data: data
  })
}

// 删除分销员申请表
export function delDistributorapp(id) {
  return request({
    url: '/distributorapp/distributorapp/' + id,
    method: 'delete'
  })
}
